$OpenBSD: patch-media_media_options_gni,v 1.6 2017/04/28 14:21:00 robert Exp $
--- media/media_options.gni.orig.port	Wed Apr 19 21:06:35 2017
+++ media/media_options.gni	Thu Apr 27 19:56:02 2017
@@ -73,9 +73,12 @@ declare_args() {
   # Enables runtime selection of ALSA library for audio.
   use_alsa = false
 
+  # Enable runtime selection of sndio(7)
+  use_sndio = false
+
   # Alsa should be used on non-Android, non-Mac POSIX systems.
   # Alsa should be used on desktop Chromecast and audio-only Chromecast builds.
-  if (is_posix && !is_android && !is_mac &&
+  if (is_posix && !is_android && !is_mac && !is_openbsd &&
       (!is_chromecast || is_cast_desktop_build || is_cast_audio_only)) {
     use_alsa = true
 
@@ -83,6 +86,10 @@ declare_args() {
     if (!use_cras && !is_chromecast) {
       use_pulseaudio = true
     }
+  }
+  if (is_openbsd) {
+    use_sndio = true
+    use_pulseaudio = false
   }
 }
 
